<?php
register_nav_menu('main-menu', __('Main Menu'));

if ( function_exists('register_sidebar') ) {
    register_sidebar(array(
        'name' => 'Main Sidebar',
        'id' => 'main-sidebar',
        'before_widget' => '<div id="%1$s" class="Block recent-blog widget %2$s">',
        'after_widget' => '</div>',
        'before_title' => '<h2 class="widget-title">',
        'after_title' => '</h2>'
    ));
}

//searchform.
function custom_searchform( $form ) {
    $form = '<form role="search" method="get" class="search" action="' . home_url( '/' ) . '" >
    <input type="text" placeholder="'.__("").'" value="' . get_search_query() . '" name="s" id="s" />
    <input type="submit" id="searchsubmit" value="Search" />
    </form>';
 
    return $form;
}
add_filter( 'get_search_form', 'custom_searchform' );

remove_action('woocommerce_pagination', 'woocommerce_pagination', 10);
function woocommerce_pagination() {
wp_pagenavi();
}
add_action( 'woocommerce_pagination', 'woocommerce_pagination', 10);

remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
//remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );

add_theme_support( 'woocommerce' );